interface Point {
  x: number;
  y?: number;
}

let p1: Point = { x: 1, y: 1 };